#include <iostream>
#include "chapter4/C4_4_3.h"
#include "chapter4/C4_4_4.h"

int main() {
    std::cout << "Hello, World!" << std::endl;

    // 第四章 4.4.3 map
    std::cout << "第四章 4.4.3 map" << std::endl;
    C4_4_3 c443;
    std::cout << "张三的手机号：" << c443.get_number("张三") << std::endl;
    std::cout << "设置赵六的手机号..." << std::endl;
    c443.set_number("赵六", 136);
    std::cout << "设置赵六的手机号完成！" << std::endl;
    std::cout << "赵六的手机号：" << c443.get_number("赵六") << std::endl;

    // 第四章 4.4.4 unordered_map
    std::cout << "第四章 4.4.4 unordered_map" << std::endl;
    C4_4_4 c444;
    std::cout << "张三的手机号：" << c444.get_number("张三") << std::endl;
    std::cout << "设置赵六的手机号..." << std::endl;
    c444.set_number("赵六", 136);
    std::cout << "设置赵六的手机号完成！" << std::endl;
    std::cout << "赵六的手机号：" << c444.get_number("赵六") << std::endl;

    return 0;
}
